package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rabbiter.oes.entity.JudgeQuestion;
import com.rabbiter.oes.entity.MultiQuestion;
import com.rabbiter.oes.mapper.JudgeQuestionMapper;

import java.util.List;

public interface JudgeQuestionService  extends IService<MultiQuestion> {

    List<JudgeQuestion> findByIdAndType(String paperId);

    IPage<JudgeQuestion> findAll(Page<JudgeQuestion> page);

    JudgeQuestion findOnlyQuestionId();

    int add(JudgeQuestion judgeQuestion);

    List<Integer> findBySubject(String subject,Integer pageNo);

    int edit(JudgeQuestion judgeQuestion);

    List<JudgeQuestion> findRandom(Integer count,String subject);

    List<JudgeQuestion> findSequence(String subject);
}
